// pages/home/home.js
Page({

        /**
         * 页面的初始数据
         */

        data: {
                msg:[],
                imgUrls: [
                        '../../imgs/img/111.jpg',
                        '../../imgs/img/222.jpg',
                        '../../imgs/img/333.jpg'
                ],
                quanzis: [{
                                picurl: '../../imgs/img/flower.png',
                                name: '告白墙',
                                pinglunnum: 520
                        },
                        {
                                picurl: '../../imgs/img/333.jpg',
                                name: '校园新鲜事',
                                pinglunnum: 666
                        },
                        {
                                picurl: '../../imgs/img/222.jpg',
                                name: '闲置交易',
                                pinglunnum: 888
                        },
                        {
                                picurl: '../../imgs/img/111.jpg',
                                name: '失物招领',
                                pinglunnum: 999
                        }
                ],
                hotActives: [{
                                picurl: '../../imgs/img/333.jpg',
                                name: '方言踩踩踩',
                                date: '2022-3-14'
                        },
                        {
                                picurl: '../../imgs/img/222.jpg',
                                name: '讲述别样的童年',
                                date: '2022-3-14'
                        },
                        {
                                picurl: '../../imgs/img/111.jpg',
                                name: '读书会',
                                date: '2022-3-14'
                        }
                ],
                quanziDuration: 1000,
                indicatorDots: true, //	是否显示面板指示点
                autoplay: true, //是否自动切换
                circular: true, //是否采用衔接滑动
                vertical: false, //滑动方向是否为纵向
                interval: 3000, //自动切换时间间隔
                duration: 100, //滑动动画时长
        },
        onLoad() {        
                wx.navigateTo({
                        url: '/login/login/pages/login/login',
                        success: function(res) {
                                console.log("1111111111111111")
                                console.log(res)
                        },
                        fail: (err) => {
                                console.log("222222")
                                console.log(err)
                        }
                      })
                      this.setData({
                        msg:JSON.parse(decodeURIComponent(this.options.data))
                })
                console.log("111")
                console.log(this.msg)
                console.log("123")
        },
        onShow(){
                console.log("xainshi1")
        },
        xinwen:function(){
                wx.navigateTo({      
                        url: '../xinwen/xinwen',    //要跳转到的页面路径
                 })  
        },
        jinrong:function(){
                wx.navigateTo({      
                        url: '../jinrong/jinrong',    //要跳转到的页面路径
                 })  
        },
        fengguang:function(){
                wx.navigateTo({      
                        url: '../fengguang/fengguang',    //要跳转到的页面路径
                 })  
        },
        yingxin:function(){
                wx.navigateTo({      
                        url: '../yingxin/yingxin',    //要跳转到的页面路径
                 })  
        },
        chengji:function(){
                wx.navigateTo({      
                        url: '../chengji/chengji',    //要跳转到的页面路径
                 })  
        },
        kebiao:function(){
                wx.navigateTo({      
                        url: '../kebiao/kebiao',    //要跳转到的页面路径
                 })  
        },
        huangye:function(){
                wx.navigateTo({      
                        url: '../huangye/huangye',    //要跳转到的页面路径
                 })  
        },
        tongzhi:function(){
                wx.navigateTo({      
                        url: '../tongzhi/tongzhi',    //要跳转到的页面路径
                 })  
        },
})